package com.luisliuyi.plugin.channel;

import org.gradle.api.Action;
import org.gradle.api.Plugin;
import org.gradle.api.Project;
public class ChannelPlugin implements Plugin<Project>{
    @Override
    public void apply(Project project) {
        project.getExtensions().create("channel", ChannelExtensions.class);
        project.afterEvaluate(new Action<Project>() {
            @Override
            public void execute(Project project) {
                project.getTasks().create("assembleChannel",ChannelTask.class);
            }
        });
    }
}
